﻿using System.ComponentModel;
using System.ComponentModel.Composition;

namespace Toolbox.Plugin.File
{
    [InheritedExport]
    public interface IPluginFileHandler
    {
        string FileName { get; set; }
    }

    public interface IPluginFileLoadHandler : IPluginFileHandler
    {
        event ProgressChangedEventHandler FileLoading;
        event RunWorkerCompletedEventHandler FileLoaded;
    }

    public interface IPluginFileSaveHandler : IPluginFileHandler
    {
        event ProgressChangedEventHandler FileSaving;
        event RunWorkerCompletedEventHandler FileSaved;
    }
}
